package com.atguigu.product.service;

import com.atguigu.product.entity.AttrGroupEntity;
import com.atguigu.product.vo.AttrGroupWithAttrsVo;
import com.atguigu.product.vo.SpuItemAttrGroupVo;
import com.baomidou.mybatisplus.extension.service.IService;
import com.atguigu.common.utils.PageUtils;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * 属性分组
 *
 * @author mrs
 * @email 2314028487@qq.com
 * @date 2022-10-11 21:08:34
 */
public interface AttrGroupService extends IService<AttrGroupEntity> {

    PageUtils queryPage(Map<String, Object> params);

    PageUtils queryPage(Map<String, Object> params, Long catelogId);

    List<AttrGroupWithAttrsVo> getAttrgroupWithAttrByCatelogId(Long catelogId);

    List<SpuItemAttrGroupVo> getGroupWithAttrBySpuId(@Param("spuId") Long spuId, Long catalogId);
}

